package com.wxxymaker.edu.utils.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @AUTHOR soft
 * @DATE 2018/10/6 14:01
 * @DESCRIBE
 */
@AllArgsConstructor
@Getter
public enum TaskType {
    VIDEO("视频"),
    PPT("图文");

    private String type;

    // 默认返回视频
    public static TaskType ordinalOf(Integer o) {
        for (TaskType value : TaskType.values()) {
            if (value.ordinal() == o) {
                return value;
            }
        }
        return VIDEO;
    }
}
